import fetch from '@/utils/fetch'

export default {
  async page(query) {
    return await fetch({
      url: '/table/product/page',
      method: 'POST',
      data: query
    })
  },

  async index(query) {
    return await fetch({
      url: '/product/',
      method: 'POST',
      data: query
    })
  },

  async save(data) {
    return await fetch({
      url: '/table/product/save',
      method: 'post',
      data
    })
  },

  async remove(data) {
    return await fetch({
      url: '/table/product/remove',
      method: 'post',
      data
    })
  }
}

